package com.smarth.zhizulian.utils;

import android.text.TextUtils;

import com.smarth.zhizulian.app.BaseConfig;

/**
 * Created by 18865 on 2017/12/25.
 */

public class UserUtils {
    public static boolean isLogin() {
        return !TextUtils.isEmpty(SPUtils.getString(BaseConfig.SP.TOKEN, ""));
    }

    public static void setToken(String token) {
        SPUtils.saveString(BaseConfig.SP.TOKEN, token);
    }

    public static String getToken() {
        return SPUtils.getString(BaseConfig.SP.TOKEN, "");
    }

}
